package thread.cusproc;

public class Producer extends Thread {
	private WareHouse house;
	private int needNum;
	
	public Producer(WareHouse house, int needNum){
		this.house = house;
		this.needNum = needNum;
	}
	
	@Override
	public void run() {
		house.produce(needNum);
	}
	
}
